package cn.exrick.xboot.supervisionDepartment.controllerImpl

import cn.exrick.xboot.base.entity.ExamRoom
import cn.exrick.xboot.base.service.IExamRoomService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.supervisionDepartment.controller.ISupervisionDepartmentController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class ExamRoomController : ISupervisionDepartmentController.IExamRoom {


    @Autowired
    private lateinit var iExamRoomService: IExamRoomService
    override fun createOrUpdateExamRoom(examRoom: ExamRoom): Result<Any?>? {

        return iExamRoomService.createOrUpdateExamRoom(examRoom)
    }

    override fun removeExamRoom(ids: Array<out String>): Result<Any?>? {

        return iExamRoomService.removeExamRoom(ids)
    }

    override fun getExamRoomList(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iExamRoomService.getExamRoomList(pageVo)
    }


}